#pragma once
//#include <windows.h>
#include <winsock2.h>
#include "ByteQueue.h"

class Connection
{
	private:
	public:
		BOOL isRunning;
		SOCKET socket;
		ByteQueue *queue;
		HANDLE hThread;
		DWORD dwThreadId;
		HWND notifyTo;

	public:
		Connection(void);
		~Connection(void);

		void setNotifyTo(HWND hwnd);
		int sendData(BYTE *data, int len);

	static DWORD WINAPI connection_service(VOID *);
};

